﻿using System;
using UnityEngine;

// Token: 0x02000134 RID: 308
[DisallowMultipleComponent]
[AddComponentMenu("RVP/C#/Ground Surface/Ground Surface Instance", 1)]
[RequireComponent(typeof(Collider))]
public class GroundSurfaceInstance : MonoBehaviour
{
	// Token: 0x060005A5 RID: 1445 RVA: 0x0002CA44 File Offset: 0x0002AC44
	private void Start()
	{
		if (GroundSurfaceMaster.surfaceTypesStatic[this.surfaceType].useColliderFriction)
		{
			this.friction = base.GetComponent<Collider>().material.dynamicFriction * 2f;
		}
		else
		{
			this.friction = GroundSurfaceMaster.surfaceTypesStatic[this.surfaceType].friction;
		}
	}

	// Token: 0x0400080E RID: 2062
	[Tooltip("Which surface type to use from the GroundSurfaceMaster list of surface types")]
	public int surfaceType;

	// Token: 0x0400080F RID: 2063
	[NonSerialized]
	public float friction;
}
